package com.renjibo.sharkerwave.network.api;

import com.renjibo.sharkerwave.models.FirstHand;
import com.renjibo.sharkerwave.models.TopicDetail;
import com.renjibo.sharkerwave.models.data.RequestData;
import com.renjibo.sharkerwave.models.data.ResponseData;

import java.util.Map;

import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * 任继波
 * Created by Administrator on 2017/4/9.
 */

public interface UserService {

    @FormUrlEncoded
    @POST("/app/v1/first_hand")
    Observable<ResponseData<FirstHand>> firstHand(@FieldMap Map<String,String> params);

    @FormUrlEncoded
    @POST("/app/v1/detail_topic")
    rx.Observable<ResponseData<TopicDetail>> detailTopic(@FieldMap Map<String,String> params);
}
